package jy.hibernate.beans;
/**
 * order_form_detail entity
 * @author tingzi
 *
 */
public class Order_form_detail implements java.io.Serializable{
	private static final long serialVersionUID = 3368028985523393765L;
//Fields
	private Integer order_form_detail_id;//自增长id
	private Product_information product;
	private Order_form order_form;
	private Integer order_form_pro_num=0;//订单中商品的数量
	private Float weight=0.0f;
	private Float volume=0.0f;
	public Integer getOrder_form_detail_id() {
		return order_form_detail_id;
	}
	public void setOrder_form_detail_id(Integer order_form_detail_id) {
		this.order_form_detail_id = order_form_detail_id;
	}
	public Product_information getProduct() {
		return product;
	}
	public void setProduct(Product_information product) {
		this.product = product;
	}
	public Order_form getOrder_form() {
		return order_form;
	}
	public void setOrder_form(Order_form order_form) {
		this.order_form = order_form;
	}
	public Integer getOrder_form_pro_num() {
		return order_form_pro_num;
	}
	public void setOrder_form_pro_num(Integer order_form_pro_num) {
		this.order_form_pro_num = order_form_pro_num;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public Float getVolume() {
		return volume;
	}
	public void setVolume(Float volume) {
		this.volume = volume;
	}
	public Order_form_detail(Product_information product,
			Order_form order_form, Integer order_form_pro_num, Float weight,
			Float volume) {
		super();
		this.product = product;
		this.order_form = order_form;
		this.order_form_pro_num = order_form_pro_num;
		this.weight = weight;
		this.volume = volume;
	}
	@Override
	public String toString() {
		
		return"product:"+product.getPro_name()+"/torder_form:"+order_form.getOrder_number()
		+"/torder_form_pro_num："+order_form_pro_num+"/tweight:"+weight+"/tvolume:"+volume;
	}

}
